 /**
 * 逻辑、功能相关描述: <br>
 *
 * @author 付湘辉  <br>
 * 编写日期：2008-8-6  <br>
 */
package com.ce.pms.charge.vo;

import com.ce.pms.common.web.ICacheManage;
import com.sitechasia.webx.core.model.IViewObject;

/**
 * 	名称: com.ce.pms.charge.vo.SchDetailVO <br>
 *
 *
 * @author  付湘辉  <br>
 * Created on： 2008-8-6 <br>
 * @author <br>
 * update on： <br>
 * why: <br>
 */
public class SchDetailVO implements IViewObject ,ICacheManage<SchDetailVO>{
	/**
	 * long：serialVersionUID
	 */
	private static final long serialVersionUID = 5130586376372613258L;

	/**
	 * 收费项目ID
	 */
	private Long chargeItemId;

	/**
	 * 收费项目名称
	 */
	private String chargeItemName;

	/**
	 * 预交方案id
	 */
	private Long prePaySchId;

	/**
	 * 预交方案名称
	 */
	private String prePaySchName;

	/**
	 * 主键
	 */
	private Long schDetailId;

	/**
	 * 序号
	 */
	private Short seqence;

	/**
	 *
	 */
	public SchDetailVO() {

	}

	/**
	 * @param schDetailId
	 * @param prePaySchId
	 * @param chargeItemId
	 * @param seqence
	 */
	public SchDetailVO(Long schDetailId, Long prePaySchId, Long chargeItemId, Short seqence) {
		this.schDetailId = schDetailId;
		this.prePaySchId = prePaySchId;
		this.chargeItemId = chargeItemId;
		this.seqence = seqence;
	}

	/**
	 * @return the chargeItemId
	 */
	public Long getChargeItemId() {
		return this.chargeItemId;
	}

	/**
	 * @return the chargeItemName
	 */
	public String getChargeItemName() {
		return this.chargeItemName;
	}

	/**
	 * @return the prePaySchId
	 */
	public Long getPrePaySchId() {
		return this.prePaySchId;
	}

	/**
	 * @return the prePaySchName
	 */
	public String getPrePaySchName() {
		return this.prePaySchName;
	}

	/**
	 * @return the schDetailId
	 */
	public Long getSchDetailId() {
		return this.schDetailId;
	}

	/**
	 * @return the seqence
	 */
	public Short getSeqence() {
		return this.seqence;
	}


	/**
	 * @param chargeItemId the chargeItemId to set
	 */
	public void setChargeItemId(Long chargeItemId) {
		this.chargeItemId = chargeItemId;
	}


	/**
	 * @param chargeItemName the chargeItemName to set
	 */
	public void setChargeItemName(String chargeItemName) {
		this.chargeItemName = chargeItemName;
	}

	/**
	 * @param prePaySchId the prePaySchId to set
	 */
	public void setPrePaySchId(Long prePaySchId) {
		this.prePaySchId = prePaySchId;
	}

	/**
	 * @param prePaySchName the prePaySchName to set
	 */
	public void setPrePaySchName(String prePaySchName) {
		this.prePaySchName = prePaySchName;
	}

	/**
	 * @param schDetailId the schDetailId to set
	 */
	public void setSchDetailId(Long schDetailId) {
		this.schDetailId = schDetailId;
	}

	/**
	 * @param seqence the seqence to set
	 */
	public void setSeqence(Short seqence) {
		this.seqence = seqence;
	}

	/* (non-Javadoc)
	 * @see com.ce.pms.common.web.ICacheManage#getHasSave()
	 */
	public String getHasSave() {
		return null;
	}

	/* (non-Javadoc)
	 * @see com.ce.pms.common.web.ICacheManage#getIndex()
	 */
	public Integer getIndex() {
		return null;
	}

	/* (non-Javadoc)
	 * @see com.ce.pms.common.web.ICacheManage#getOpratorStatus()
	 */
	public String getOpratorStatus() {
		return null;
	}

	/* (non-Javadoc)
	 * @see com.ce.pms.common.web.ICacheManage#setHasSave(java.lang.String)
	 */
	public void setHasSave(String hasSave) {

	}

	/* (non-Javadoc)
	 * @see com.ce.pms.common.web.ICacheManage#setIndex(java.lang.Integer)
	 */
	public void setIndex(Integer index) {

	}

	/* (non-Javadoc)
	 * @see com.ce.pms.common.web.ICacheManage#setOpratorStatus(java.lang.String)
	 */
	public void setOpratorStatus(String opratorStatus) {

	}

	/* (non-Javadoc)
	 * @see java.lang.Comparable#compareTo(java.lang.Object)
	 */
	public int compareTo(SchDetailVO o) {
		Short another = o.getSeqence();
		Short thisSeqNo = this.seqence;
		another = another == null ? 0 : another;
		thisSeqNo = thisSeqNo == null ? 0 : thisSeqNo;
		return thisSeqNo - another;
	}
}
